fixed error for fail test case. Using absolute path for now
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user