fixed error for fail test case. Using absolute path for now

This commit is contained in:
2021-04-04 22:18:13 +04:00
parent 2875b7228b
commit 7503e4870c
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ func UpdateIpTableListClient() error {
// Check if IP addresses is there in the struct DoNotRead
Exists := false
for k, _ := range DoNotRead.IpAddress {
if DoNotRead.IpAddress[k].Ipv4 == Addresses.IpAddress[i].Ipv4 {
if DoNotRead.IpAddress[k].Ipv4 == Addresses.IpAddress[j].Ipv4 {
Exists = true
break
}

View File

@@ -94,7 +94,7 @@ func (s *IpAddress)DownloadSpeed() error {
func (s *IpAddress)UploadSpeed() error {
start := time.Now()
b, w := createMultipartFormData("file","50.bin")
b, w := createMultipartFormData("file","/etc/p2p-rendering/50.bin")
req, err := http.NewRequest("GET", "http://" + s.Ipv4 + ":8088/upload", &b)
if err != nil {

View File

@@ -19,7 +19,7 @@ func Server() {
// Speed test with 50 mbps
r.GET("/50", func(c *gin.Context){
c.File("server/50.bin")
c.File("/etc/p2p-rendering/50.bin")
})
// Route build to do a speed test