From ea1f63b1ed66414ccea79ef4a6f26f00947a25d3 Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Wed, 11 Dec 2024 05:09:56 +0900 Subject: [PATCH] =?UTF-8?q?search-by-username-and-host=E3=81=AE=E3=83=86?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=82=92=E3=83=AA=E3=83=88=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/misskey_users_test.dart | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/test/misskey_users_test.dart b/test/misskey_users_test.dart index 3cedecee..c2a22451 100644 --- a/test/misskey_users_test.dart +++ b/test/misskey_users_test.dart @@ -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())); - }); + 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())); + }, + retry: 3, + ); test( "recommendation",