Skip to content

Commit db03322

Browse files
committed
test: use platforms spec instead of runtime const
Signed-off-by: CrazyMax <[email protected]>
1 parent 3eb4e72 commit db03322

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6996,7 +6996,7 @@ func testExportLocalForcePlatformSplit(t *testing.T, sb integration.Sandbox) {
69966996

69976997
require.Len(t, fis, 1, "expected one files in the output directory")
69986998

6999-
expPlatform := runtime.GOOS + "_" + runtime.GOARCH
6999+
expPlatform := strings.ReplaceAll(platforms.FormatAll(platforms.DefaultSpec()), "/", "_")
70007000
_, err = os.Stat(filepath.Join(destDir, expPlatform+"/"))
70017001
require.NoError(t, err)
70027002

0 commit comments

Comments
 (0)