Skip to content

Commit

Permalink
Attempt to fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosanchez committed Aug 30, 2019
1 parent 8217aa4 commit 0d6304f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ class MemcachedSpec extends AbstractRestSpec {
@Shared
MemcachedTokenStorageService memcachedTokenStorageService

@Shared
Integer originalExpiration

@Autowired
void setTokenStorageService(MemcachedTokenStorageService tokenStorageService) {
this.memcachedTokenStorageService = tokenStorageService
originalExpiration = memcachedTokenStorageService.expiration
}

void cleanupSpec() {
memcachedTokenStorageService.expiration = originalExpiration
memcachedTokenStorageService.expiration = 3600
}

@Unroll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ class MemcachedSpec extends AbstractRestSpec {
@Shared
MemcachedTokenStorageService memcachedTokenStorageService

@Shared
Integer originalExpiration

@Autowired
void setTokenStorageService(MemcachedTokenStorageService tokenStorageService) {
this.memcachedTokenStorageService = tokenStorageService
originalExpiration = memcachedTokenStorageService.expiration
}

void cleanupSpec() {
memcachedTokenStorageService.expiration = originalExpiration
memcachedTokenStorageService.expiration = 3600
}

@Unroll
Expand Down

0 comments on commit 0d6304f

Please sign in to comment.