Skip to content

Commit 1bd2ade

Browse files
committed
Fix expansion on Windows
1 parent 4479de2 commit 1bd2ade

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

agent/agent_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,12 @@ func TestAgent(t *testing.T) {
181181
}
182182
output, err := session.Output(command)
183183
require.NoError(t, err)
184+
expect := ""
185+
if runtime.GOOS == "windows" {
186+
expect = "%EXAMPLE%"
187+
}
184188
// Output should be empty, because the variable is not set!
185-
require.Equal(t, "", strings.TrimSpace(string(output)))
189+
require.Equal(t, expect, strings.TrimSpace(string(output)))
186190
})
187191

188192
t.Run("StartupScript", func(t *testing.T) {

0 commit comments

Comments
 (0)