Include a null byte in the middle of the Greeting test

This commit is contained in:
Matt Joiner 2020-10-30 10:42:45 +11:00
parent 7410e28329
commit 6f619c39cb
1 changed files with 2 additions and 1 deletions

View 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"
)