Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Fix tests from segfaulting #35

Merged
merged 1 commit into from
Oct 28, 2019
Merged

Fix tests from segfaulting #35

merged 1 commit into from
Oct 28, 2019

Conversation

aknuds1
Copy link
Contributor

@aknuds1 aknuds1 commented Oct 28, 2019

The test case "resample series: time range shorter than the rule interval" was segfaulting due to it not returning an error as expected, and the test logic would continue instead of failing straight away as it should (thus incurring a segfault).

With this PR I rectify the issue by instead basing test cases around the convention that if the series is not initialized, there should be an error. Otherwise (if the series is initialized), there should not be an error and the returned series should be equal.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
@aknuds1 aknuds1 added area/backend bug Something isn't working labels Oct 28, 2019
@aknuds1 aknuds1 added this to In progress in GEL TODOs Oct 28, 2019
Copy link
Member

@marefr marefr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aknuds1 aknuds1 merged commit cbbb7f4 into master Oct 28, 2019
@aknuds1 aknuds1 deleted the bugfix/fix-tests branch October 28, 2019 14:26
@aknuds1 aknuds1 moved this from In progress to Done in GEL TODOs Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/backend bug Something isn't working
Projects
GEL TODOs
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants