Skip to content

Commit

Permalink
add sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
r2k1 committed Dec 3, 2024
1 parent cfbd2ee commit 1bf704f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net"
"regexp"
"strings"
"time"

"github.com/Azure/agentbaker/e2e/config"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -267,5 +268,8 @@ func ValidatePodUsingNVidiaGPU(ctx context.Context, s *Scenario) {
s.T.Logf("validating pod using nvidia GPU")
// add "nvidia.com/gpu" resource to the node
ensurePod(ctx, s, podEnableNvidiaResource(s))
// NVidia pod can be ready, but resources may not be available yet
// a hacky way to ensure the next pod is schedulable
time.Sleep(5 * time.Second)
ensurePod(ctx, s, podRunNvidiaWorkload(s))
}

0 comments on commit 1bf704f

Please sign in to comment.