Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
devname
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
devname
Commits
9df38511
Commit
9df38511
authored
Nov 12, 2026
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: seed the in-hour probe with a non-negative age (flaked outside minute 0)
parent
6a7c7ed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test_devname.py
tests/test_devname.py
+1
-1
No files found.
tests/test_devname.py
View file @
9df38511
...
@@ -326,7 +326,7 @@ class DevnameTests(unittest.TestCase):
...
@@ -326,7 +326,7 @@ class DevnameTests(unittest.TestCase):
def
test_json_records_carries_the_spa_fields
(
self
):
def
test_json_records_carries_the_spa_fields
(
self
):
self
.
run_cli
(
"ensure"
,
"app"
,
"--port"
,
"8123"
,
"--note"
,
"demo app"
)
self
.
run_cli
(
"ensure"
,
"app"
,
"--port"
,
"8123"
,
"--note"
,
"demo app"
)
now
=
int
(
time
.
time
())
now
=
int
(
time
.
time
())
self
.
seed_probes
(
"app.localhost"
,
[(
now
-
now
%
3600
+
60
-
now
,
1
,
200
,
12
)])
#
inside the current hour
self
.
seed_probes
(
"app.localhost"
,
[(
now
%
3600
//
2
,
1
,
200
,
12
)])
# age = half the hour so far: always
inside the current hour
recs
=
self
.
dn
.
json_records
()
recs
=
self
.
dn
.
json_records
()
self
.
assertEqual
(
len
(
recs
),
1
)
self
.
assertEqual
(
len
(
recs
),
1
)
r
=
recs
[
0
]
r
=
recs
[
0
]
...
...
Write
Preview
Markdown
is supported
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