Skip to content

Commit

Permalink
fix(RAIN-93468): Fix test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
gspofford-lw committed Jun 18, 2024
1 parent 0194e32 commit 376a672
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions integration/lql_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ func TestQueryCreateHelp(t *testing.T) {
}

func TestQueryCreateEditor(t *testing.T) {
out, err, exitcode := LaceworkCLIWithTOMLConfig("query", "create")
assert.Contains(t, out.String(), "Choose query language")
_, err, exitcode := LaceworkCLIWithTOMLConfig("query", "create")
assert.Contains(t, err.String(), "ERROR unable to create query:")
assert.Equal(t, 1, exitcode, "EXITCODE is not the expected one")
}
Expand Down
2 changes: 0 additions & 2 deletions integration/lql_create_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ func TestQueryCreateFromEditor(t *testing.T) {

_ = runFakeTerminalTestFromDir(t, dir,
func(c *expect.Console) {
expectString(t, c, "Choose query language")
c.SendLine("")
time.Sleep(time.Millisecond)
expectString(t, c, "Type a query to create")
c.SendLine("")
Expand Down

0 comments on commit 376a672

Please sign in to comment.