Fix Flaky Integration Tests (#7360)

Allow the OS kernel to decide what's an open port instead of trying to
guess
This commit is contained in:
Travis Patterson
2022-10-06 13:17:18 -06:00
committed by GitHub
parent 289190ee26
commit e89c30ce6b
6 changed files with 64 additions and 129 deletions

View File

@ -34,9 +34,9 @@ func TestSimpleScalableIngestQuery(t *testing.T) {
tenantID := randStringRunes()
now := time.Now()
cliWrite := client.New(tenantID, "", tWrite.HTTPURL().String())
cliWrite := client.New(tenantID, "", tWrite.HTTPURL())
cliWrite.Now = now
cliRead := client.New(tenantID, "", tRead.HTTPURL().String())
cliRead := client.New(tenantID, "", tRead.HTTPURL())
cliRead.Now = now
t.Run("ingest logs", func(t *testing.T) {