From 6cb038012db4209a49678c19b4abc9f2d4f7e237 Mon Sep 17 00:00:00 2001 From: Christopher Moussa Date: Thu, 31 Oct 2024 13:29:41 -0700 Subject: [PATCH] t: adjust error message when bank doesn't exist 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. --- t/t1023-flux-account-banks.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t1023-flux-account-banks.t b/t/t1023-flux-account-banks.t index 088bd481..94c1e0aa 100755 --- a/t/t1023-flux-account-banks.t +++ b/t/t1023-flux-account-banks.t @@ -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' '