Skip to content

Commit

Permalink
t: adjust error message when bank doesn't exist
Browse files Browse the repository at this point in the history
Problem: There is a test in t1023-flux-account-banks.t that looks for a
specific error message when trying to view a bank that does not exist,
but this error message has changed slightly with the introduction of
the BankFormatter subclass.

Change the expected error message in t1023-flux-account-banks.t to
account for the new message format.
  • Loading branch information
cmoussa1 committed Nov 26, 2024
1 parent 264775f commit 6cb0380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t1023-flux-account-banks.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test_expect_success 'add some queues' '

test_expect_success 'trying to view a bank that does not exist in the DB should raise a ValueError' '
test_must_fail flux account view-bank foo > bank_nonexistent.out 2>&1 &&
grep "bank foo not found in bank_table" bank_nonexistent.out
grep "error in view-bank: view-bank: no results found in query" bank_nonexistent.out
'

test_expect_success 'viewing the root bank with no optional args should show basic bank info' '
Expand Down

0 comments on commit 6cb0380

Please sign in to comment.