influxdata / influxdb1-client

The old clientv2 for InfluxDB 1.x
MIT License
191 stars 112 forks source link

Upgrade go 1.13 to 1.16 failing tests #56

Closed p-acharya closed 2 years ago

p-acharya commented 3 years ago

Hello! I am upgrading a codebase from go 1.13 to 1.16.

The following test is now failing (error message reproduced below):

influxdb_test.go:751: unexpected error. expected 'request canceled' error, got Post "http://127.0.0.1:61711/query?db=&q=": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Here are the lines where the error is occurring .

    } else if !strings.Contains(err.Error(), "request canceled") &&
        !strings.Contains(err.Error(), "use of closed network connection") {
        t.Fatalf("unexpected error. expected 'request canceled' error, got %v", err)
    }
}