Skip to content

Commit

Permalink
Work around what looks like a Go 1.16 / OS X combo problem
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed Feb 16, 2021
1 parent 18ecf33 commit 4848d14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion persist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ func TestFailFileRoundtrip(t *testing.T) {

Check(t, func(t *T) {
var (
testName = String().Draw(t, "testName").(string)
// OS X seems to have issues with Go 1.16 and String(), reporting "illegal byte sequence" when trying to rename the file
testName = StringMatching(`[a-zA-Z0-9._-]+`).Draw(t, "testName").(string)
version = StringMatching(`[a-zA-Z0-9._-]+`).Draw(t, "version").(string)
output = SliceOf(Byte()).Draw(t, "output").([]byte)
buf = SliceOf(Uint64()).Draw(t, "buf").([]uint64)
Expand Down

0 comments on commit 4848d14

Please sign in to comment.