Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
Metrics
Onionoo
Commits
b89b6610
Commit
b89b6610
authored
May 06, 2022
by
Hiro
🏄
Browse files
Fix typo in comment
parent
75d9997b
Pipeline
#37960
passed with stage
in 1 minute and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/torproject/metrics/onionoo/updater/NodeDetailsStatusUpdaterTest.java
View file @
b89b6610
...
...
@@ -155,16 +155,14 @@ public class NodeDetailsStatusUpdaterTest {
}
dd
=
this
.
docStore
.
getDocument
(
DetailsStatus
.
class
,
FPB
);
assertNotNull
(
dd
);
String
firstSeen
=
DateTimeHelper
.
format
(
uptimeStatus
.
getBridgeHistory
().
first
().
getStartMillis
());
assertEquals
(
firstSeen
,
DateTimeHelper
.
format
(
dd
.
getFirstSeenMillis
()));
/*
* If the last_restarted field is less then the
la
st_seen field then
* If the last_restarted field is less then the
fir
st_seen field then
* our fix should be applied and the first_seen field be equal to the Uptime
* status first value.
*/
String
firstSeen
=
DateTimeHelper
.
format
(
uptimeStatus
.
getBridgeHistory
().
first
().
getStartMillis
());
assertEquals
(
firstSeen
,
DateTimeHelper
.
format
(
dd
.
getFirstSeenMillis
()));
assertEquals
((
long
)
uptimeStatus
.
getBridgeHistory
().
first
().
getStartMillis
(),
(
long
)
dd
.
getFirstSeenMillis
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment