Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 11, 2024
1 parent 2196b2a commit 1a1c2b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class Config {
}

/// Our global configuration object.
late Config config;
Config config = Config(GamePhase.bootstrap);

/// Our global network configuration object.
final NetworkConfig networkConfig = NetworkConfig();
3 changes: 1 addition & 2 deletions packages/cli/test/cache/caches_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ void main() {
final agentsApi = _MockAgentsApi();
when(() => api.agents).thenReturn(agentsApi);
final agent = Agent.test();
when(() => db.getAgent(symbol: any(named: 'symbol')))
.thenAnswer((_) => Future.value(agent));
when(() => db.getMyAgent()).thenAnswer((_) => Future.value(agent));
when(agentsApi.getMyAgent).thenAnswer(
(_) => Future.value(GetMyAgent200Response(data: agent.toOpenApi())),
);
Expand Down
1 change: 1 addition & 0 deletions packages/cli/test/cli_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void main() {
},
overrideLogger: logger,
overrideDatabase: db,
loadConfig: false,
);
verify(() => logger.level = Level.verbose).called(1);
verify(db.close).called(1);
Expand Down

0 comments on commit 1a1c2b4

Please sign in to comment.