@@ -956,15 +956,12 @@ func TestTemplateInsights_Golden(t *testing.T) {
956
956
},
957
957
},
958
958
appUsage : []appUsage {
959
- // TODO(mafredri): This doesn't behave correctly right now
960
- // and will add more usage to the app. This could be
961
- // considered both correct and incorrect behavior.
962
- // { // One hour of usage, but same user and same template app, only count once.
963
- // app: users[0].workspaces[1].apps[0],
964
- // startedAt: frozenWeekAgo,
965
- // endedAt: frozenWeekAgo.Add(time.Hour),
966
- // requests: 1,
967
- // },
959
+ { // One hour of usage, but same user and same template app, only count once.
960
+ app : users [0 ].workspaces [1 ].apps [0 ],
961
+ startedAt : frozenWeekAgo ,
962
+ endedAt : frozenWeekAgo .Add (time .Hour ),
963
+ requests : 1 ,
964
+ },
968
965
{
969
966
// Different templates but identical apps, apps will be
970
967
// combined and usage will be summed.
@@ -1811,15 +1808,12 @@ func TestUserActivityInsights_Golden(t *testing.T) {
1811
1808
},
1812
1809
},
1813
1810
appUsage : []appUsage {
1814
- // TODO(mafredri): This doesn't behave correctly right now
1815
- // and will add more usage to the app. This could be
1816
- // considered both correct and incorrect behavior.
1817
- // { // One hour of usage, but same user and same template app, only count once.
1818
- // app: users[0].workspaces[1].apps[0],
1819
- // startedAt: frozenWeekAgo,
1820
- // endedAt: frozenWeekAgo.Add(time.Hour),
1821
- // requests: 1,
1822
- // },
1811
+ { // One hour of usage, but same user and same template app, only count once.
1812
+ app : users [0 ].workspaces [1 ].apps [0 ],
1813
+ startedAt : frozenWeekAgo ,
1814
+ endedAt : frozenWeekAgo .Add (time .Hour ),
1815
+ requests : 1 ,
1816
+ },
1823
1817
{
1824
1818
// Different templates but identical apps, apps will be
1825
1819
// combined and usage will be summed.
0 commit comments