Skip to content

Commit

Permalink
search-by-username-and-hostのテストをリトライする
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed Dec 10, 2024
1 parent c2170be commit ea1f63b
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions test/misskey_users_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,18 @@ void main() async {
});
});

test("search-by-username-and-host", () async {
final response = await userClient.users.searchByUsernameAndHost(
UsersSearchByUsernameAndHostRequest(username: user.username, host: "."),
);
expect(response.map((e) => e.id), contains(user.id));
expect(response, everyElement(isA<UserDetailed>()));
});
test(
"search-by-username-and-host",
() async {
await userClient.createNote();
final response = await userClient.users.searchByUsernameAndHost(
UsersSearchByUsernameAndHostRequest(username: user.username, host: "."),
);
expect(response.map((e) => e.id), contains(user.id));
expect(response, everyElement(isA<UserDetailed>()));
},
retry: 3,
);

test(
"recommendation",
Expand Down

0 comments on commit ea1f63b

Please sign in to comment.