Skip to content

Commit a7c414e

Browse files
committed
fix(test): fix the mweb test
create then start then (attempt to) stop the server
1 parent 854a401 commit a7c414e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/services/testing/test_suites/litecoin_mweb_integration_test_suite.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,23 @@ class LitecoinMwebIntegrationTestSuite implements TestSuiteInterface {
101101

102102
// Test server creation - this exercises the FFI bindings.
103103
await server.createServer();
104+
105+
// Wait for server to start.
106+
await server.startServer();
107+
108+
// Verify server is running.
109+
if (!server.isRunning) {
110+
throw Exception("MWEB server did not start successfully");
111+
}
112+
113+
Logging.instance.log(Level.info,
114+
"MWEB server created and running on port $port"
115+
);
104116
await server.stopServer();
105117

106118
Logging.instance.log(Level.info,
107119
"👍 MWEB server creation test passed"
108120
);
109-
110121
} catch (e) {
111122
throw Exception("MWEB server creation test failed: $e");
112123
} finally {

0 commit comments

Comments
 (0)