Skip to content

Commit fe5bb4a

Browse files
committed
Update platform tests to use the defaultOS
fix tests on windows Signed-off-by: Daniel Nephin <dnephin@gmail.com>
1 parent 666d946 commit fe5bb4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platforms/platforms_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestParseSelector(t *testing.T) {
8787
OS: defaultOS,
8888
Architecture: "arm",
8989
},
90-
formatted: "linux/arm",
90+
formatted: joinNotEmpty(defaultOS, "arm"),
9191
},
9292
{
9393
input: "armel",
@@ -96,15 +96,15 @@ func TestParseSelector(t *testing.T) {
9696
Architecture: "arm",
9797
Variant: "v6",
9898
},
99-
formatted: "linux/arm/v6",
99+
formatted: joinNotEmpty(defaultOS, "arm/v6"),
100100
},
101101
{
102102
input: "armhf",
103103
expected: specs.Platform{
104104
OS: defaultOS,
105105
Architecture: "arm",
106106
},
107-
formatted: "linux/arm",
107+
formatted: joinNotEmpty(defaultOS, "arm"),
108108
},
109109
{
110110
input: "Aarch64",

0 commit comments

Comments
 (0)