Skip to content

Commit 8bf03b5

Browse files
author
timpratim
committed
Fixed SDK version CI test issue
1 parent 1e07547 commit 8bf03b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configuration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ func TestSDKVersioning(t *testing.T) {
1616

1717
// Ensure default version is correct
1818
assert.Equal(t, "go", Config.SDKName)
19-
assert.Equal(t, "2.0.0", Config.SDKVersion)
19+
assert.Equal(t, 2.0, Config.SDKVersion)
2020

2121
// Test GetSDKInfo function
2222
info := GetSDKInfo()
2323
assert.Equal(t, "go", info["SDK Name"])
24-
assert.Equal(t, 2.0, info["SDK Version"])
24+
assert.Equal(t, "2.00", info["SDK Version"])
2525

2626
// Set environment variables and reconfigure
27-
os.Setenv("TREBLLE_SDK_VERSION", "2.1.0")
27+
os.Setenv("TREBLLE_SDK_VERSION", "2.1")
2828
Configure(Configuration{})
2929

3030
// Check if version updates
31-
assert.Equal(t, "2.1.0", Config.SDKVersion)
31+
assert.Equal(t, 2.1, Config.SDKVersion)
3232

3333
// Clean up env
3434
os.Unsetenv("TREBLLE_SDK_VERSION")

0 commit comments

Comments
 (0)