integration_test: Make TestTmpMountWithSize error message less confusing.

If I understand correctly, this test expects the second write to fail, but
if it succeeds, the error message it shows suggests that it should have
failed.

This CL rewords this message to reflect that.

#codehealth

PiperOrigin-RevId: 456835892
This commit is contained in:
Etienne Perot
2022-06-23 12:34:32 -07:00
committed by gVisor bot
parent 102e3d4993
commit 55776eca5f
+1 -1
View File
@@ -944,7 +944,7 @@ func TestTmpMountWithSize(t *testing.T) {
}
echoOutput, err := d.Exec(ctx, dockerutil.ExecOpts{}, "/bin/sh", "-c", "echo world > /tmp/foo/test2.txt")
if err == nil {
t.Fatalf("docker exec size check failed: %v", err)
t.Fatalf("docker exec size check unexpectedly succeeded (output: %v)", echoOutput)
}
wantErr := "No space left on device"
if !strings.Contains(echoOutput, wantErr) {