Fix a race in the allocation API tests

We expect the newly created allocation not to change instantly, but
the allocation process is usually pretty fast. Only compare fields
we care about.

Change-Id: Ifb2c9ebb4ab35c350001635dea1c41c8a0e5cfdd
1 file changed