-
Notifications
You must be signed in to change notification settings - Fork 604
Adds a non-repeating scheduled reducer test #3233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
public static void nonrepeating_test(ReducerContext ctx, NonrepeatingTestArg arg) | ||
{ | ||
var deltaTime = ctx.Timestamp.TimeDurationSince(arg.prev_time); | ||
Log.Trace($"Timestamp: {ctx.Timestamp}, Delta time: {deltaTime}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where in the test harness do we actually check to see if we get this log? If this log isn't present how does the test fail?
.timestamp | ||
.duration_since(arg.prev_time) | ||
.expect("arg.prev_time is later than ctx.timestamp... huh?"); | ||
log::trace!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: Where in the test harness do we actually check to see if we get this log? If this log isn't present how does the test fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few Qs on this
Description of Changes
Adds a non-repeating scheduled reducer integration test to the existing Rust and C# integration tests, in order to address #3213
API and ABI breaking changes
No
Expected complexity level and risk
1
Testing
cargo test -p spacetimedb-testing
and all tests passed