Skip to content

Commit 2848f54

Browse files
Merge pull request #8 from OctopusSolutionsEngineering/isaac/add-mssql-tag-env-var
Add start up timeout to mssql container
2 parents 42853d1 + c5ec970 commit 2848f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/octopus_container_test_framework.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (o *OctopusContainerTest) setupDatabase(ctx context.Context, network string
110110
"ACCEPT_EULA": "Y",
111111
"SA_PASSWORD": "Password01!",
112112
},
113-
WaitingFor: wait.ForExec([]string{"/opt/mssql-tools18/bin/sqlcmd", "-C", "-U", "sa", "-P", "Password01!", "-Q", "select 1"}).WithExitCodeMatcher(
113+
WaitingFor: wait.ForExec([]string{"/opt/mssql-tools18/bin/sqlcmd", "-C", "-U", "sa", "-P", "Password01!", "-Q", "select 1"}).WithStartupTimeout(60 * time.Second).WithExitCodeMatcher(
114114
func(exitCode int) bool {
115115
return exitCode == 0
116116
}),

0 commit comments

Comments
 (0)