util.promise: Fix field name in failing test (introduced in 2639e0e1c378)
authorMatthew Wild <mwild1@gmail.com>
Fri, 07 Oct 2022 18:04:30 +0100
changeset 12756 9ef8f248635c
parent 12755 2639e0e1c378
child 12757 2eb02b32bb4c
util.promise: Fix field name in failing test (introduced in 2639e0e1c378)
spec/util_promise_spec.lua
--- a/spec/util_promise_spec.lua	Fri Oct 07 17:56:38 2022 +0100
+++ b/spec/util_promise_spec.lua	Fri Oct 07 18:04:30 2022 +0100
@@ -480,7 +480,7 @@
 			r1("this fails too");
 			assert.spy(cb).was_called(1);
 			assert.same({
-				{ status = "rejected", value = "this fails too" };
+				{ status = "rejected", reason = "this fails too" };
 				{ status = "rejected", reason = "this fails" };
 			}, result);
 		end);