Skip to content

Commit c5ec970

Browse files
Add startup timeout
1 parent 7c1e059 commit c5ec970

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-tools/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)