Commit 45024db
committed
acctz: use helpers.GetRouterTime for RecordSubscribe timestamps
The record_payload_truncation and record_subscribe_full tests use
time.Now() from the test host as the RecordSubscribe request timestamp.
Clock skew between the test host and DUT (~300-825ms observed) causes
the acctz service to reject the timestamp as "in the future", resulting
in deterministic test failures.
Replace time.Now() with helpers.GetRouterTime() to source the timestamp
from the DUT's own clock, matching the pattern already used in
record_subscribe_non_grpc and record_subscribe_partial.1 parent 18d2804 commit 45024db
2 files changed
Lines changed: 9 additions & 5 deletions
File tree
- feature/gnsi/acctz/tests
- record_payload_truncation
- record_subscribe_full
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments