Fix typo
parent
52070e442a
commit
78912f87c1
2
jwt.zig
2
jwt.zig
|
@ -343,7 +343,7 @@ fn test_generate_then_validate(comptime alg: Algorithm, signatureOptions: Signat
|
||||||
defer std.testing.allocator.free(token);
|
defer std.testing.allocator.free(token);
|
||||||
|
|
||||||
var decoded_p = try validate(Payload, std.testing.allocator, alg, token, signatureOptions);
|
var decoded_p = try validate(Payload, std.testing.allocator, alg, token, signatureOptions);
|
||||||
defer decoded_p.value;
|
defer decoded_p.deinit();
|
||||||
const decoded = decoded_p.value;
|
const decoded = decoded_p.value;
|
||||||
|
|
||||||
try std.testing.expectEqualSlices(u8, payload.sub, decoded.sub);
|
try std.testing.expectEqualSlices(u8, payload.sub, decoded.sub);
|
||||||
|
|
Loading…
Reference in New Issue