Skip to content

Commit

Permalink
Fix some development issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kaysond committed Feb 4, 2024
1 parent a3dfce3 commit 3285eb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ scrutiny_test.db
scrutiny.yaml
coverage.txt
/config
/influxdb
/influxdb
.angular
web.log
7 changes: 4 additions & 3 deletions webapp/backend/pkg/models/testdata/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/analogj/scrutiny/webapp/backend/pkg/models/collector"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"time"

"github.com/analogj/scrutiny/webapp/backend/pkg/models/collector"
)

func main() {
Expand All @@ -32,7 +33,7 @@ func main() {
log.Fatalf("ERROR %v", err)
}
defer file.Close()
_, err = SendPostRequest("http://localhost:9090/api/devices/register", file)
_, err = SendPostRequest("http://localhost:8080/api/devices/register", file)
if err != nil {
log.Fatalf("ERROR %v", err)
}
Expand All @@ -46,7 +47,7 @@ func main() {
log.Fatalf("ERROR %v", err)
}

_, err = SendPostRequest(fmt.Sprintf("http://localhost:9090/api/device/%s/smart", diskId), smartDataReader)
_, err = SendPostRequest(fmt.Sprintf("http://localhost:8080/api/device/%s/smart", diskId), smartDataReader)
if err != nil {
log.Fatalf("ERROR %v", err)
}
Expand Down

0 comments on commit 3285eb6

Please sign in to comment.