/**
* Verifies that when a factory's makeObject produces instances that are not
* discernible by == , the pool can handle them.
*
* JIRA: POOL-283
 */
Verifies that when a factory's makeObject produces instances that are not
discernible by == , the pool can handle them.


/ ** * Verifies that when a factory ' s makeObject produces instances that are not * discernible by == the pool can handle them . * * JIRA : POOL - 283 * /
func (suit *PoolTestSuite) TestEqualsIndiscernible() {
	pool := NewObjectPoolWithDefaultConfig(NewPooledObjectFactorySimple(func() (interface{}, error) {
		return make(map[string]string), nil
	}))
	m1 := suit.NoErrorWithResult(pool.BorrowObject())
	m2 := suit.NoErrorWithResult(pool.BorrowObject())
	suit.NoError(pool.ReturnObject(m1))
	suit.NoError(pool.ReturnObject(m2))
	pool.Close()
}
func ( suit * PoolTestSuite ) TestEqualsIndiscernible ( ) { pool := NewObjectPoolWithDefaultConfig ( NewPooledObjectFactorySimple ( func ( ) ( interface { } , error ) { return make ( map [ string ] string ) , nil } ) ) m1 := suit . NoErrorWithResult ( pool . BorrowObject ( ) ) m2 := suit . NoErrorWithResult ( pool . BorrowObject ( ) ) suit . NoError ( pool . ReturnObject ( m1 ) ) suit . NoError ( pool . ReturnObject ( m2 ) ) pool . Close ( ) }
Verifies that when a factory's makeObject produces instances that are not
discernible by == , the pool can handle them.
Verifies that when a factory ' s makeObject produces instances that are not discernible by == the pool can handle them .