Skip to content

Commit c8cb3c8

Browse files
committed
Fix BoxLang timestamp aggregate expectation
1 parent e3be96c commit c8cb3c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/specs/Query/Abstract/QueryExecutionSpec.cfc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,9 @@ component extends="testbox.system.BaseSpec" {
885885

886886
it( "can return the max date of a table", function() {
887887
var builder = getBuilder();
888-
var expectedMax = now();
889-
var expectedQuery = queryNew( "aggregate", "timestamp", [ { aggregate: expectedMax } ] );
888+
var maxDate = now();
889+
var expectedQuery = queryNew( "aggregate", "timestamp", [ { aggregate: maxDate } ] );
890+
var expectedMax = expectedQuery.aggregate;
890891
builder
891892
.$( "runQuery" )
892893
.$args( sql = "SELECT MAX(""login_date"") AS ""aggregate"" FROM ""users""", options = {} )

0 commit comments

Comments
 (0)