diff --git a/builder/digitalocean/builder_test.go b/builder/digitalocean/builder_test.go index d6857bbe6..bd3bb1d21 100644 --- a/builder/digitalocean/builder_test.go +++ b/builder/digitalocean/builder_test.go @@ -264,7 +264,7 @@ func TestBuilderPrepare_SSHUsername(t *testing.T) { } if b.config.SSHUsername != "root" { - t.Errorf("invalid: %d", b.config.SSHUsername) + t.Errorf("invalid: %s", b.config.SSHUsername) } // Test set @@ -297,7 +297,7 @@ func TestBuilderPrepare_SSHTimeout(t *testing.T) { } if b.config.RawSSHTimeout != "1m" { - t.Errorf("invalid: %d", b.config.RawSSHTimeout) + t.Errorf("invalid: %s", b.config.RawSSHTimeout) } // Test set @@ -338,7 +338,7 @@ func TestBuilderPrepare_StateTimeout(t *testing.T) { } if b.config.RawStateTimeout != "6m" { - t.Errorf("invalid: %d", b.config.RawStateTimeout) + t.Errorf("invalid: %s", b.config.RawStateTimeout) } // Test set @@ -379,7 +379,7 @@ func TestBuilderPrepare_PrivateNetworking(t *testing.T) { } if b.config.PrivateNetworking != false { - t.Errorf("invalid: %s", b.config.PrivateNetworking) + t.Errorf("invalid: %t", b.config.PrivateNetworking) } // Test set @@ -394,7 +394,7 @@ func TestBuilderPrepare_PrivateNetworking(t *testing.T) { } if b.config.PrivateNetworking != true { - t.Errorf("invalid: %s", b.config.PrivateNetworking) + t.Errorf("invalid: %t", b.config.PrivateNetworking) } }