Skip to content

Commit 8abf30f

Browse files
authored
Merge pull request #4 from ba-st-dependencies/pharo_10
Pharo 10
2 parents 2cbc83c + f86500d commit 8abf30f

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.github/workflows/loading-groups.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
smalltalk: [ Pharo64-9.0, Pharo64-8.0 ]
11+
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0 ]
1212
load-spec: [ core, tests ]
1313
name: ${{ matrix.smalltalk }} + ${{ matrix.load-spec }}
1414
steps:

.github/workflows/unit-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
smalltalk: [ Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, Pharo32-7.0 ]
10+
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0, Pharo64-7.0, Pharo32-7.0 ]
1111
name: ${{ matrix.smalltalk }}
1212
steps:
1313
- uses: actions/checkout@v2

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2021 Denis Kudriashov
3+
Copyright (c) 2017-2022 Denis Kudriashov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

ObjectPool-Tests/OPBasicPoolTest.class.st

+12-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ObjectPoolTest tests the working of ObjectPool.
44
Class {
55
#name : #OPBasicPoolTest,
66
#superclass : #OPPoolTestCase,
7-
#category : 'ObjectPool-Tests'
7+
#category : #'ObjectPool-Tests'
88
}
99

1010
{ #category : #running }
@@ -153,18 +153,21 @@ OPBasicPoolTest >> testMigrationObjectsToAnotherPool [
153153
OPBasicPoolTest >> testMigrationObjectsToAnotherPoolWhenBorrowedObjectsExists [
154154

155155
| anotherPool |
156+
156157
pool objectToPool: #object1.
157158
pool objectToPool: #object2.
158159
pool borrow.
159-
160+
160161
anotherPool := self poolClass new.
161-
162-
[pool migrateObjectsInto: anotherPool andDo: nil.
163-
self assert: false description: 'should raise error'
164-
] ifError: [].
165-
166-
self assert: anotherPool numberOfAvailableObjects = 0.
167-
self assert: pool numberOfAvailableObjects = 2
162+
163+
self
164+
should: [
165+
pool migrateObjectsInto: anotherPool andDo: nil.
166+
self assert: false description: 'should raise error'
167+
]
168+
raise: Error.
169+
self assert: anotherPool numberOfAvailableObjects equals: 0.
170+
self assert: pool numberOfAvailableObjects equals: 2
168171
]
169172

170173
{ #category : #tests }

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[![Pharo 7.0](https://img.shields.io/badge/Pharo-7.0-informational)](https://pharo.org)
99
[![Pharo 8.0](https://img.shields.io/badge/Pharo-8.0-informational)](https://pharo.org)
1010
[![Pharo 9.0](https://img.shields.io/badge/Pharo-9.0-informational)](https://pharo.org)
11+
[![Pharo 10](https://img.shields.io/badge/Pharo-10-informational)](https://pharo.org)
1112

1213
Object Pool offers easy way to build pools for objects. One common situation
1314
could be pooling database connections. This library was created for supporting pooling

0 commit comments

Comments
 (0)