Skip to content

Commit 6af4d9c

Browse files
tadasantclaude
andcommitted
fix: correct integration test to use ServerID instead of VersionID
The integration test in findServerIDByName was incorrectly returning server.Meta.Official.VersionID instead of server.Meta.Official.ServerID, causing 404 errors when verifying published servers. This fix ensures consistent ID usage throughout the integration test flow. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent d52462d commit 6af4d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ func findServerIDByName(serverName string) (string, error) {
224224
var foundServers []string
225225
for _, server := range serverList.Servers {
226226
if server.Name == serverName {
227-
foundServers = append(foundServers, fmt.Sprintf("ID:%s IsLatest:%t", server.Meta.Official.VersionID, server.Meta.Official.IsLatest))
227+
foundServers = append(foundServers, fmt.Sprintf("ServerID:%s VersionID:%s IsLatest:%t", server.Meta.Official.ServerID, server.Meta.Official.VersionID, server.Meta.Official.IsLatest))
228228
if server.Meta.Official.IsLatest {
229-
return server.Meta.Official.VersionID, nil
229+
return server.Meta.Official.ServerID, nil
230230
}
231231
}
232232
}

0 commit comments

Comments
 (0)