Skip to content

Commit dd51616

Browse files
committed
improve a RegExp for matching non-existent dotenv file
1 parent 757e095 commit dd51616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestRunCommand(t *testing.T) {
2626
t.Fatalf(msg, err)
2727
}
2828

29-
assert.Regexp(t, "Error: failed to load env file from .+: open .+: no such file or directory\n", buff.String())
29+
assert.Regexp(t, "Error: failed to load env file from .+/dispatch/cli/non-existent.env: open non-existent.env: no such file or directory\n", buff.String())
3030
})
3131

3232
t.Run("Run with env file", func(t *testing.T) {

0 commit comments

Comments
 (0)