From 36edefda5d6a08561cd7c10618a33447f650a9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A1n=20Del=20Valle?= Date: Fri, 15 Oct 2021 16:48:48 -0700 Subject: [PATCH] Fixing Mac tests. Adding extra time for killing thermos jobs --- realis_e2e_test.go | 2 +- runTestsMac.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/realis_e2e_test.go b/realis_e2e_test.go index de87b15..676ed84 100644 --- a/realis_e2e_test.go +++ b/realis_e2e_test.go @@ -269,7 +269,7 @@ func TestRealisClient_CreateJob_Thermos(t *testing.T) { err := r.KillJob(job.JobKey()) assert.NoError(t, err) - success, err := r.MonitorInstances(job.JobKey(), 0, 1*time.Second, 60*time.Second) + success, err := r.MonitorInstances(job.JobKey(), 0, 1*time.Second, 90*time.Second) assert.True(t, success) assert.NoError(t, err) }) diff --git a/runTestsMac.sh b/runTestsMac.sh index e84ef0a..2791ada 100644 --- a/runTestsMac.sh +++ b/runTestsMac.sh @@ -1,4 +1,4 @@ #!/bin/bash # Since we run our docker compose setup in bridge mode to be able to run on MacOS, we have to launch a Docker container within the bridge network in order to avoid any routing issues. -docker run --rm -t -w /gorealis -v $GOPATH/pkg:/go/pkg -v $(pwd):/gorealis --network scheduler_aurora_cluster golang:1.17-buster go test -v github.com/aurora-scheduler/gorealis/v2 $@ +docker run --rm -t -w /gorealis -v $GOPATH/pkg:/go/pkg -v $(pwd):/gorealis --network gorealis_aurora_cluster golang:1.17-buster go test -v github.com/aurora-scheduler/gorealis/v2 $@