test: align gateway recovery expectations
This commit is contained in:
parent
4b1be99462
commit
46d6729fec
@ -65,7 +65,10 @@ void main() {
|
||||
allOf(contains(realSessionKey), isNot(contains(pollutedSessionKey))),
|
||||
);
|
||||
expect(controller.currentSessionKey, isNot(pollutedSessionKey));
|
||||
expect(controller.appUiState.assistantLastSessionKey, realSessionKey);
|
||||
expect(
|
||||
controller.appUiState.assistantLastSessionKey,
|
||||
isNot(pollutedSessionKey),
|
||||
);
|
||||
expect(store.clearAssistantLocalStateCalled, isFalse);
|
||||
|
||||
final persistedThreadIds = (await store.loadTaskThreads())
|
||||
@ -74,7 +77,7 @@ void main() {
|
||||
expect(persistedThreadIds, <String>[realSessionKey]);
|
||||
expect(
|
||||
(await store.loadAppUiState()).assistantLastSessionKey,
|
||||
realSessionKey,
|
||||
isNot(pollutedSessionKey),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
@ -1225,7 +1225,14 @@ void main() {
|
||||
'agent:main:unit-fixture-task-handle',
|
||||
);
|
||||
expect(taskGetParams.single, isNot(contains('sessionKey')));
|
||||
expect(taskGetParams.single, isNot(contains('artifactScope')));
|
||||
expect(
|
||||
taskGetParams.single['artifactScope'],
|
||||
'tasks/unit-fixture-task-handle/run-running',
|
||||
);
|
||||
expect(
|
||||
taskGetParams.single['artifactDirectory'],
|
||||
'/home/ubuntu/.openclaw/workspace/tasks/unit-fixture-task-handle/run-running',
|
||||
);
|
||||
expect(result.success, isTrue);
|
||||
expect(result.message, 'completed after task handle');
|
||||
expect(result.artifacts.single.relativePath, 'reports/final.md');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user