From 4e1861142033b1d6d0a0f80f882e1a1a78c52736 Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Sun, 7 Jul 2024 19:46:58 +0300 Subject: [PATCH] Fix skipRegistry parsing unittest Contrary to the comment in the unittest, the code is checking for the wrong value, should be `default_` not `all`. The unittest passed because the function threw an exception not because of the value of skipRegistry but because there's a missing '}'. Signed-off-by: Andrei Horodniceanu --- source/dub/data/settings.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dub/data/settings.d b/source/dub/data/settings.d index 20c667247..a4de43cf7 100644 --- a/source/dub/data/settings.d +++ b/source/dub/data/settings.d @@ -195,7 +195,7 @@ unittest { import std.exception : assertThrown; const str1 = `{ - "skipRegistry": "all" -`; + "skipRegistry": "default_" +}`; assertThrown!Exception(parseConfigString!Settings(str1, "/dev/null")); }