]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Include a null byte in the middle of the Greeting test
authorMatt Joiner <anacrolix@gmail.com>
Thu, 29 Oct 2020 23:42:45 +0000 (10:42 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 29 Oct 2020 23:42:45 +0000 (10:42 +1100)
internal/testutil/greeting.go

index 4523a9c20371fa6745385d6894640e30d06fb9fb..954ad9130d55fa644f02c5e946dfc5a249b48d5e 100644 (file)
@@ -21,7 +21,8 @@ var Greeting = Torrent{
 }
 
 const (
-       GreetingFileContents = "hello, world\n"
+       // A null in the middle triggers an error if SQLite stores data as text instead of blob.
+       GreetingFileContents = "hello,\x00world\n"
        GreetingFileName     = "greeting"
 )