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() {
27
27
createTestServer () async {
28
28
final testServer = TestHttpServerHelper ();
29
29
await testServer.start ();
30
+ addTearDown (() => testServer.stop ());
30
31
return testServer;
31
32
}
32
33
33
34
test ('should connect to mock PowerSync instance' , () async {
34
35
final testServer = await createTestServer ();
35
- // Cant do this inside the createTestServer function unfortunately
36
- addTearDown (() => testServer.stop ());
37
-
38
36
final connector = TestConnector (() async {
39
37
return PowerSyncCredentials (
40
38
endpoint: testServer.uri.toString (),
@@ -70,9 +68,6 @@ void main() {
70
68
int uploadCounter = 0 ;
71
69
Completer uploadTriggeredCompleter = Completer ();
72
70
final testServer = await createTestServer ();
73
- // Cant do this inside the createTestServer function unfortunately
74
- addTearDown (() => testServer.stop ());
75
-
76
71
final connector = TestConnector (() async {
77
72
return PowerSyncCredentials (
78
73
endpoint: testServer.uri.toString (),
You can’t perform that action at this time.
0 commit comments