# expect failure as A friends B and B is missing in the bundle
sandbox publish --override-ordering A -v

# expect failure as B depends on A and A is missing in the bundle
sandbox publish --override-ordering B -v

# expect failure as B depends on A but A appears after B in the bundle
sandbox publish --override-ordering B --override-ordering A -v

# expect success: this is the correct order of publishing A and B
# with friend relationship
sandbox publish --override-ordering A --override-ordering B -v
sandbox view storage/0x00000000000000000000000000000002/modules/A.mv
sandbox view storage/0x00000000000000000000000000000002/modules/B.mv
