Skip to content

Commit 5bf01e1

Browse files
committed
Make sure randomizer-lambda omits Google Cloud packages
1 parent 5d7fba2 commit 5bf01e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/randomizer-lambda/main_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ func TestBannedPackages(t *testing.T) {
3737
if strings.Contains(nmout.String(), "T html/template.") {
3838
t.Errorf("%s imports html/template, blocking dead code elimination", name)
3939
}
40+
if strings.Contains(nmout.String(), "T cloud.google.com/") {
41+
t.Errorf("%s contains Google Cloud packages, even though it's for AWS", name)
42+
}
4043
}

0 commit comments

Comments
 (0)