Skip to content

Commit

Permalink
fix only ubuntu test & fix test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yosh11 committed Jan 23, 2024
1 parent b1ec2ac commit baa481a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- 11211:11211
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-latest ]
go: [ 1.21.x ]
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions memcached/memcached_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,14 +498,14 @@ func testExpireWithClient(t *testing.T, c *Client) {
return
}

const secondsToExpiry = uint32(2)
const secondsToExpiry = uint32(1)

_, err := c.Store(Set, "foo", secondsToExpiry, []byte("fooval"))
assert.Nilf(t, err, "Store(Set) with expire have error - %v", err)
_, err = c.Store(Add, "bar", secondsToExpiry, []byte("barval"))
assert.Nilf(t, err, "Store(Add) with expire have error - %v", err)

time.Sleep(2 * time.Second)
time.Sleep(time.Second)

_, err = c.Get("foo")
assert.ErrorIsf(t, err, ErrCacheMiss, "Get for expire item - %v", err)
Expand Down Expand Up @@ -638,7 +638,7 @@ func TestConn(t *testing.T) {

// c.SetDeadline(time.Now().Add(time.Second))

time.Sleep(2 * time.Second)
time.Sleep(time.Second)

n, err := transmitRequest(c, &req)
if err != nil {
Expand Down

0 comments on commit baa481a

Please sign in to comment.