From 6f619c39cb000843906cb4f78b10c09215cb3b6e Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 30 Oct 2020 10:42:45 +1100 Subject: [PATCH] Include a null byte in the middle of the Greeting test --- internal/testutil/greeting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ) -- 2.48.1