Commits

Tuukka Norri committed b85e4f3

Fixed a unit test

Comments (0)

Files changed (2)

Sources/BXPGEFMetadataContainer.m

 			[self fetchViewPrimaryKeys: connection];
 			[self fetchForeignKeys: connection];
 		}
+		else
+		{
+			BXLogInfo (@"BaseTen schema is installed but its compatibility version is %@ while the framework's is %@.", 
+					   [mDatabase schemaCompatibilityVersion], currentCompatVersion);
+		}
 	}
 }
 

UnitTests/Sources/PGTSMetadataTests.m

 #import <BaseTen/PGTSColumnDescription.h>
 #import <BaseTen/PGTSIndexDescription.h>
 #import <BaseTen/PGTSTypeDescription.h>
+#import <BaseTen/BXPGInterface.h>
 #import <BaseTen/BXEnumerate.h>
 
 
 - (void) setUp
 {
 	[super setUp];
+	
+	[BXPGInterface class]; // Run +initialize.
+	
 	NSDictionary* connectionDictionary = [self connectionDictionary];
 	PGTSConnection* connection = [[[PGTSConnection alloc] init] autorelease];
 	BOOL status = [connection connectSync: connectionDictionary];