@@ -44,7 +44,7 @@ func TestStartCommandSucceedsWithValidToken(t *testing.T) {
4444 ctx , cancel := context .WithTimeout (context .Background (), 2 * time .Minute )
4545 defer cancel ()
4646
47- cmd := exec .CommandContext (ctx , "../../bin/lstk" , "start" )
47+ cmd := exec .CommandContext (ctx , binaryPath () , "start" )
4848 cmd .Env = append (os .Environ (), "LOCALSTACK_AUTH_TOKEN=" + authToken )
4949 output , err := cmd .CombinedOutput ()
5050
@@ -63,7 +63,7 @@ func TestStartCommandTriggersLoginWithoutToken(t *testing.T) {
6363 ctx , cancel := context .WithTimeout (context .Background (), 2 * time .Minute )
6464 defer cancel ()
6565
66- cmd := exec .CommandContext (ctx , "../../bin/lstk" , "start" )
66+ cmd := exec .CommandContext (ctx , binaryPath () , "start" )
6767 cmd .Env = envWithoutAuthToken ()
6868
6969 // Capture output asynchronously
@@ -108,7 +108,7 @@ func TestStartCommandSucceedsWithKeyringToken(t *testing.T) {
108108 defer cancel ()
109109
110110 // Run without LOCALSTACK_AUTH_TOKEN should use keyring
111- cmd := exec .CommandContext (ctx , "../../bin/lstk" , "start" )
111+ cmd := exec .CommandContext (ctx , binaryPath () , "start" )
112112 cmd .Env = envWithoutAuthToken ()
113113 output , err := cmd .CombinedOutput ()
114114
@@ -127,7 +127,7 @@ func TestStartCommandFailsWithInvalidToken(t *testing.T) {
127127 ctx , cancel := context .WithTimeout (context .Background (), 2 * time .Minute )
128128 defer cancel ()
129129
130- cmd := exec .CommandContext (ctx , "../../bin/lstk" , "start" )
130+ cmd := exec .CommandContext (ctx , binaryPath () , "start" )
131131 cmd .Env = append (os .Environ (), "LOCALSTACK_AUTH_TOKEN=invalid-token" )
132132 output , err := cmd .CombinedOutput ()
133133
0 commit comments