fix turbo-getent unit test

This commit is contained in:
Motiejus Jakštys 2022-07-14 06:15:21 +03:00
parent 3fac6a82e5
commit 7a27c06f7b

View File

@ -258,7 +258,6 @@ test "turbo-getent group" {
var stderr = ArrayList(u8).init(testing.allocator);
defer stderr.deinit();
if (true) return error.SkipZigTest;
{
const args = &[_][*:0]const u8{
"--db",
@ -266,7 +265,7 @@ test "turbo-getent group" {
"group",
"root",
"doesnotexist",
"svc-bar",
"service-group",
"0",
"1",
};
@ -274,7 +273,8 @@ test "turbo-getent group" {
try testing.expectEqual(got, 2);
const want =
\\root:x:0:
\\svc-bar:x:128:root,vidmantas
\\service-group:x:100000:root,vidmantas
\\root:x:0:
\\
;
try testing.expectEqualStrings(want, stdout.items);