Fix bootstrap script proxy test

This commit is contained in:
Ciprian Hacman 2024-03-06 06:45:59 +02:00
parent 23dba06436
commit dee3ecc530
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func Test_ProxyFunc(t *testing.T) {
t.Fatalf("script cannot be empty")
}
if !strings.HasPrefix(script, "echo \"http_proxy=http://example.com:80\" >> /etc/environment") {
if !strings.Contains(script, "echo \"http_proxy=http://example.com:80\"") {
t.Fatalf("script not setting http_proxy properly")
}