diff --git a/osc/osc_test.go b/osc/osc_test.go
index <HASH>..<HASH> 100644
--- a/osc/osc_test.go
+++ b/osc/osc_test.go
@@ -362,7 +362,7 @@ func TestWritePaddedString(t *testing.T) {
 		if got, want := n, tt.n; got != want {
 			t.Errorf("%s: Count of bytes written don't match; got = %d, want = %d", tt.s, got, want)
 		}
-		if got, want := bytesBuffer, tt.buf; bytes.Equal(got, want) {
+		if got, want := bytesBuffer, tt.buf; bytes.Equal(got.Bytes(), want) {
 			t.Errorf("%s: Buffers don't match; got = %s, want = %s", tt.s, got.Bytes(), want)
 		}
 	}
Fix the type of an argument to equal