Must escape string formatting for string fmt

This commit is contained in:
Taliesin Sisson 2015-10-18 16:29:23 +01:00
parent 5285a819dd
commit 15137310a7

View File

@ -96,7 +96,7 @@ func TestProvisionerPrepare_Defaults(t *testing.T) {
}
if p.config.ElevatedEnvVarFormat != `$env:%s="%s"; ` {
t.Fatalf("Default command should be powershell '$env:%s=\"%s\"; ', but got %s", p.config.ElevatedEnvVarFormat)
t.Fatalf(`Default command should be powershell '$env:%%s="%%s"; ', but got %s`, p.config.ElevatedEnvVarFormat)
}
}