Skip to content
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

fix: add testing for sets and some type fixes #159

Merged
merged 4 commits into from
Feb 22, 2023
Merged

Conversation

pgautier404
Copy link
Contributor

No description provided.

momento/set_test.go Outdated Show resolved Hide resolved
schwern and others added 3 commits February 22, 2023 13:01
* "returns a miss after overriding the client timeout with a short duration" needed
  a sleep to be reliable.
* "returns a miss after the client default when refreshTTL is false" needed to
  create the Set before testing its refresh. The TTL will always be applied when
  creating a new Set.
* Switch those tests to a more compact and complete testing style.
@pgautier404 pgautier404 marked this pull request as ready for review February 22, 2023 21:40
@@ -278,7 +278,7 @@ func (c defaultScsClient) SetAddElement(ctx context.Context, r *SetAddElementReq
if err := c.dataClient.makeRequest(ctx, newRequest); err != nil {
return nil, err
}
return SetAddElementSuccess{}, nil
return &SetAddElementSuccess{}, nil
Copy link
Member

Choose a reason for hiding this comment

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

good catch on these

@pgautier404 pgautier404 merged commit 23bc04d into main Feb 22, 2023
@pgautier404 pgautier404 deleted the add-set-testing branch February 22, 2023 22:14
cprice404 pushed a commit that referenced this pull request Mar 14, 2023
* fix: add testing for sets and some type fixes

* Fix the refreshTTL tests.

* "returns a miss after overriding the client timeout with a short duration" needed
  a sleep to be reliable.
* "returns a miss after the client default when refreshTTL is false" needed to
  create the Set before testing its refresh. The TTL will always be applied when
  creating a new Set.
* Switch those tests to a more compact and complete testing style.

* fix: seed set for collection ttl tests in BeforeEach

* fix: prefer less verbose Expect

---------

Co-authored-by: Michael G. Schwern <schwern@pobox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants