Skip to content

Commit 868ff12

Browse files
committed
addressing feedback
1 parent ced9b72 commit 868ff12

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
export CODEFLARE_TEST_TIMEOUT_SHORT=1m
8585
export CODEFLARE_TEST_TIMEOUT_MEDIUM=5m
8686
export CODEFLARE_TEST_TIMEOUT_LONG=10m
87+
export CODEFLARE_TEST_TIMEOUT_GPU_PROVISIONING=30m
8788
8889
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
8990
echo "CODEFLARE_TEST_OUTPUT_DIR=${CODEFLARE_TEST_OUTPUT_DIR}" >> $GITHUB_ENV

test/support/ocm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func buildOCMConnection(secret string) (*ocmsdk.Connection, error) {
4343
connection, err := ocmsdk.NewConnectionBuilder().
4444
Tokens(secret).
4545
Build()
46-
if err != nil || connection == nil {
46+
if err != nil {
4747
fmt.Fprintf(os.Stderr, "Can't build connection: %v\n", err)
4848
return nil, err
4949
}

test/support/support.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ func init() {
5858
fmt.Printf("Error parsing CODEFLARE_TEST_TIMEOUT_LONG. Using default value: %s", TestTimeoutLong)
5959
}
6060
}
61+
if value, ok := os.LookupEnv("CODEFLARE_TEST_TIMEOUT_GPU_PROVISIONING"); ok {
62+
if duration, err := time.ParseDuration(value); err == nil {
63+
TestTimeoutGpuProvisioning = duration
64+
} else {
65+
fmt.Printf("Error parsing CODEFLARE_TEST_TIMEOUT_GPU_PROVISIONING. Using default value: %s", TestTimeoutGpuProvisioning)
66+
}
67+
}
6168

6269
// Gomega settings
6370
gomega.SetDefaultEventuallyTimeout(TestTimeoutShort)

0 commit comments

Comments
 (0)