File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,12 @@ void main() {
2727 createTestServer () async {
2828 final testServer = TestHttpServerHelper ();
2929 await testServer.start ();
30+ addTearDown (() => testServer.stop ());
3031 return testServer;
3132 }
3233
3334 test ('should connect to mock PowerSync instance' , () async {
3435 final testServer = await createTestServer ();
35- // Cant do this inside the createTestServer function unfortunately
36- addTearDown (() => testServer.stop ());
37-
3836 final connector = TestConnector (() async {
3937 return PowerSyncCredentials (
4038 endpoint: testServer.uri.toString (),
@@ -70,9 +68,6 @@ void main() {
7068 int uploadCounter = 0 ;
7169 Completer uploadTriggeredCompleter = Completer ();
7270 final testServer = await createTestServer ();
73- // Cant do this inside the createTestServer function unfortunately
74- addTearDown (() => testServer.stop ());
75-
7671 final connector = TestConnector (() async {
7772 return PowerSyncCredentials (
7873 endpoint: testServer.uri.toString (),
You can’t perform that action at this time.
0 commit comments