Skip to content

Commit d23b2d2

Browse files
committed
test: strengthen reconnect metadata coverage
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 7b9bc681-ce19-4a8b-b06c-94efb63a5f9f
1 parent c217b94 commit d23b2d2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎tests/OpenClaw.Shared.Tests/WindowsClientMetadataTests.cs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public async Task OperatorAndNodeConnect_SharedIdentityEmitIdenticalCanonicalMet
6464
}
6565
}
6666

67-
[IntegrationFact]
67+
[Fact]
6868
public async Task OperatorReconnect_AfterRestartPreservesIdentityTokenSourceAndMetadata()
6969
{
7070
var dataPath = CreateTempDirectory();
@@ -185,8 +185,10 @@ private static string BuildNodeConnectMessage(WindowsNodeClient client, string n
185185

186186
private static void AssertCanonicalMetadata(JsonElement clientMetadata)
187187
{
188-
Assert.Equal(WindowsClientMetadata.Platform, clientMetadata.GetProperty("platform").GetString());
189-
Assert.Equal(WindowsClientMetadata.DeviceFamily, clientMetadata.GetProperty("deviceFamily").GetString());
188+
Assert.Equal("windows", WindowsClientMetadata.Platform);
189+
Assert.Equal("Windows", WindowsClientMetadata.DeviceFamily);
190+
Assert.Equal("windows", clientMetadata.GetProperty("platform").GetString());
191+
Assert.Equal("Windows", clientMetadata.GetProperty("deviceFamily").GetString());
190192
}
191193

192194
private static string CreateTempDirectory()

0 commit comments

Comments
 (0)