Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
removing TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ssandler committed Jan 25, 2013
1 parent 310bf17 commit 23d6246
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
2 changes: 0 additions & 2 deletions TeslaSQL/Agents/Master.cs
Expand Up @@ -159,8 +159,6 @@ public Master(IDataUtils sourceDataUtils, IDataUtils destDataUtils, Logger logge

if (lastBatch == null) {
logger.Log("No existing batches found, tblCTVersion was empty", LogLevel.Debug);
//TODO figure out a better way to handle this case, determine an appropriate syncStartVersion. Perhaps use 0 and specially handle that using
//CHANGE_TRACKING_MIN_VALID_VERSION?
throw new Exception("Unable to determine appropriate syncStartVersion - version table seems to be empty.");
}

Expand Down
29 changes: 0 additions & 29 deletions TeslaSQL/Tests/Agents/TestMaster.cs
Expand Up @@ -280,34 +280,5 @@ public class MasterTestFixture {
Config.MasterType = SqlFlavor.MSSQL;
Config.RelayType = SqlFlavor.MSSQL;
}

//TODO move this somewhere else
public void TestData() {
//this will resolve to something like "C:\tesla\TeslaSQL\bin\Debug"
string baseDir = AppDomain.CurrentDomain.BaseDirectory;
//relative path to the tests folder will be four directories up from that
string filePath = baseDir + @"..\..\..\..\Tests\test1\input_data.xml";
DataSet ds = new DataSet();
ds.ReadXml(filePath, XmlReadMode.ReadSchema);
//ds.AcceptChanges();
filePath = baseDir + @"..\..\..\..\Tests\test1\expected_data.xml";
DataSet expected = new DataSet();
expected.ReadXml(filePath, XmlReadMode.ReadSchema);

//expected.AcceptChanges();
Console.WriteLine(TestDataUtils.CompareDataSets(expected, ds));
Console.WriteLine("one hop this time");
DataRow row = ds.Tables["tblCTSlaveVersion"].NewRow();
row["CTID"] = 500;
row["slaveIdentifier"] = "TESTSLAVE";
row["syncStartVersion"] = 1000;
row["syncStopVersion"] = 2000;
row["syncStartTime"] = new DateTime(2012, 1, 1, 12, 0, 0);
row["syncBitWise"] = 0;
ds.Tables["tblCTSlaveVersion"].Rows.Add(row);

Console.WriteLine(TestDataUtils.CompareDataSets(expected, ds));
Console.ReadLine();
}
}
}

0 comments on commit 23d6246

Please sign in to comment.