From: Matt Joiner Date: Thu, 29 Oct 2020 23:42:45 +0000 (+1100) Subject: Include a null byte in the middle of the Greeting test X-Git-Tag: v1.19.0~54 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6f619c39cb000843906cb4f78b10c09215cb3b6e;p=btrtrc.git Include a null byte in the middle of the Greeting test --- diff --git a/internal/testutil/greeting.go b/internal/testutil/greeting.go index 4523a9c2..954ad913 100644 --- a/internal/testutil/greeting.go +++ b/internal/testutil/greeting.go @@ -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" )