Fix test failure: Clear the stream before reusing it.

pull/1191/head
John Ralls 5 years ago
parent be322a0d7c
commit 12f8df1eab

@ -936,6 +936,7 @@ TEST_F(GncOptionAccountTest, test_account_list_from_scheme)
GncOptionAccountTypeList{ACCT_TYPE_BANK}}};
GncOptionAccountList acclistbad{list_of_types({ACCT_TYPE_STOCK})};
acc_guids = make_account_list_SCM_str(acclistbad);
iss.clear();
iss.str(acc_guids);
sel_option.from_scheme(iss);
EXPECT_EQ(accsel, sel_option.get_value<GncOptionAccountList>());

Loading…
Cancel
Save