Skip to content

Commit

Permalink
Adding long test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Sep 10, 2024
1 parent 2d3e17b commit 074ca29
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/integration-tests-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ jobs:
ACCOUNT_NAME: "firebolt"
SERVICE_ACCOUNT_CLIENT_ID: ${{ secrets.SERVICE_ID_STG }}
SERVICE_ACCOUNT_CLIENT_SECRET: ${{ secrets.SERVICE_SECRET_STG }}
LONG_TEST_VALUE: ${{ vars.LONG_TEST_VALUE }}
run: |
go test . -timeout=30m -v --tags=integration_v0
1 change: 1 addition & 0 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ jobs:
ACCOUNT_NAME: ${{ vars.FIREBOLT_ACCOUNT }}
CLIENT_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
CLIENT_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
LONG_TEST_VALUE: ${{ vars.LONG_TEST_VALUE }}
run: |
go test . -timeout=30m -v --tags=integration
1 change: 1 addition & 0 deletions .github/workflows/nightly-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
ACCOUNT_NAME: "firebolt"
SERVICE_ACCOUNT_CLIENT_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STAGING }}
SERVICE_ACCOUNT_CLIENT_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STAGING }}
LONG_TEST_VALUE: ${{ vars.LONG_TEST_VALUE }}
run: |
go test . -timeout=30m -v -coverprofile cover.out --tags=integration_v0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
ACCOUNT_NAME: ${{ vars.FIREBOLT_ACCOUNT }}
CLIENT_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
CLIENT_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
LONG_TEST_VALUE: ${{ vars.LONG_TEST_VALUE }}
run: |
go test . -timeout=30m -v -coverprofile cover.out --tags=integration
Expand Down
9 changes: 8 additions & 1 deletion connection_common_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"bytes"
"context"
"database/sql"
"os"
"reflect"
"testing"
"time"
Expand All @@ -19,6 +20,12 @@ const SCAN_STATEMENT_ERROR_MSG = "firebolt rows Scan() call failed with %v"
const VALUES_ARE_NOT_EQUAL_ERROR_MSG = "values are not equal: %v and %v\n"
const RESULTS_ARE_NOT_EQUAL_ERROR_MSG = "results are not equal "

var longTestValue string

func init() {
longTestValue = os.Getenv("LONG_TEST_VALUE")
}

// TestConnectionPrepareStatement, tests that prepare statement doesn't result into an error
func TestConnectionSetStatement(t *testing.T) {
conn, err := sql.Open("firebolt", dsnMock)
Expand Down Expand Up @@ -363,7 +370,7 @@ func TestConnectionQueryByteaType(t *testing.T) {
}

func TestLongQuery(t *testing.T) {
var maxValue = 400000000000
var maxValue = longTestValue

finished_in := make(chan time.Duration, 1)
go func() {
Expand Down

0 comments on commit 074ca29

Please sign in to comment.