From bf976aac88a0770db266cd38f667d22ec3ba954a Mon Sep 17 00:00:00 2001 From: Christopher Moussa Date: Mon, 4 Nov 2024 13:33:59 -0800 Subject: [PATCH] t: change which user is deleted from table Problem: There is a test in t1023-flux-account-banks.t that makes sure the default bank of a user is updated when one of their user/bank rows is deleted from the database by removing it in the test prior, but the wrong user is deleted. Change which user is deleted in t1023-flux-account-banks.t. --- t/t1023-flux-account-banks.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t1023-flux-account-banks.t b/t/t1023-flux-account-banks.t index 98b34c86..51cfb3cc 100755 --- a/t/t1023-flux-account-banks.t +++ b/t/t1023-flux-account-banks.t @@ -110,13 +110,15 @@ test_expect_success 'add a user to two different banks' ' ' test_expect_success 'delete user default bank row' ' - flux account delete-user user5013 E + flux account delete-user user5015 E ' test_expect_success 'check that user default bank gets updated to other bank' ' flux account view-user user5015 > new_default_bank.out && cat new_default_bank.out && - grep -w "username: user5015\|bank: F\|default_bank: F" new_default_bank.out + grep "\"username\": \"user5015\"" new_default_bank.out + grep "\"bank\": \"F\"" new_default_bank.out && + grep "\"default_bank\": \"F\"" new_default_bank.out ' test_expect_success 'trying to add a user to a nonexistent bank should raise a ValueError' '