Skip to content

Commit 0aa7a73

Browse files
Fiona-Watersopenshift-ci[bot]
authored andcommitted
addressing feedback
1 parent ac34d67 commit 0aa7a73

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
@@ -65,6 +65,7 @@ jobs:
6565
export CODEFLARE_TEST_TIMEOUT_SHORT=1m
6666
export CODEFLARE_TEST_TIMEOUT_MEDIUM=5m
6767
export CODEFLARE_TEST_TIMEOUT_LONG=10m
68+
export CODEFLARE_TEST_TIMEOUT_GPU_PROVISIONING=30m
6869
6970
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
7071
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)