Skip to content

Commit

Permalink
Update tests, moorages_view and moorage_view include default duration…
Browse files Browse the repository at this point in the history
… at PT0S
  • Loading branch information
xbgmsharp committed Jul 16, 2024
1 parent 82a0f19 commit 23ea9df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/index3.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var moment = require('moment');
],
user_views: [
{ url: '/stays_view', res_body_length: 2},
{ url: '/moorages_view', res_body_length: 2},
{ url: '/moorages_view', res_body_length: 3},
{ url: '/logs_view', res_body_length: 2},
{ url: '/log_view', res_body_length: 2},
//{ url: '/stats_view', res_body_length: 1},
Expand Down Expand Up @@ -247,7 +247,7 @@ var moment = require('moment');
],
user_views: [
{ url: '/stays_view', res_body_length: 2},
{ url: '/moorages_view', res_body_length: 2},
{ url: '/moorages_view', res_body_length: 4},
{ url: '/logs_view', res_body_length: 2},
{ url: '/log_view', res_body_length: 2},
//{ url: '/stats_view', res_body_length: 1},
Expand Down
10 changes: 9 additions & 1 deletion tests/sql/grafana.sql.output
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ vessel_id | t
name | Ekenäs
country | fi
stay_code | 1
stay_duration |
stay_duration | PT0S
reference_count | 1
latitude | 59.86
longitude | 23.3657666666667
Expand All @@ -268,4 +268,12 @@ default_stay_id | 2
total_stay | 0
total_duration | PT1M
arrivals_departures | 1
-[ RECORD 3 ]-------+---------------------
id | 3
moorage | Ekenäs
default_stay | Unknown
default_stay_id | 1
total_stay | 0
total_duration | PT0S
arrivals_departures | 1

0 comments on commit 23ea9df

Please sign in to comment.