Skip to content

Commit

Permalink
Quick path fix to get test pass
Browse files Browse the repository at this point in the history
* Investigate whether I need to "fix" RID usage in this PR too
  • Loading branch information
PaulusParssinen committed Apr 24, 2024
1 parent 8d27c77 commit cc9f943
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/Garnet.test/GarnetServerConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void ImportExportConfigLocal()

// No import path, include command line args, export to file
// Check values from command line override values from defaults.conf
var args = new string[] { "--config-export-path", configPath, "-p", "4m", "-m", "8g", "-s", "2g", "--recover", "--port", "53", "--reviv-obj-bin-record-count", "2", "--reviv-fraction", "0.5", "--extension-bin-paths", "../../../../../../test/Garnet.test,../../../../../../test/Garnet.test.cluster" };
var args = new string[] { "--config-export-path", configPath, "-p", "4m", "-m", "8g", "-s", "2g", "--recover", "--port", "53", "--reviv-obj-bin-record-count", "2", "--reviv-fraction", "0.5", "--extension-bin-paths", "../../../../../test/Garnet.test,../../../../../test/Garnet.test.cluster" };
parseSuccessful = ServerSettingsManager.TryParseCommandLineArguments(args, out options, out invalidOptions);
Assert.IsTrue(parseSuccessful);
Assert.AreEqual(invalidOptions.Count, 0);
Expand Down
8 changes: 4 additions & 4 deletions test/Garnet.test/RespCustomCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ public static void CreateTestLibrary(string[] namespaces, string[] referenceFile

foreach (var fileToCompile in filesToCompile)
{
Assert.IsTrue(File.Exists(fileToCompile));
Assert.IsTrue(File.Exists(fileToCompile), $"File at '{fileToCompile}' does not exist.");
}

var parseFunc = new Func<string, SyntaxTree>(filePath =>
Expand Down Expand Up @@ -605,11 +605,11 @@ private string[] CreateTestLibraries()

var libPathToFiles = new Dictionary<string, string[]>
{
{ Path.Combine(dir1, "testLib1.dll"), new [] {@"../../../../../../main/GarnetServer/Extensions/MyDictObject.cs"}},
{ Path.Combine(dir2, "testLib2.dll"), new [] {@"../../../../../../main/GarnetServer/Extensions/SetIfPM.cs"}},
{ Path.Combine(dir1, "testLib1.dll"), new [] {@"../../../../../main/GarnetServer/Extensions/MyDictObject.cs"}},
{ Path.Combine(dir2, "testLib2.dll"), new [] {@"../../../../../main/GarnetServer/Extensions/SetIfPM.cs"}},
{ Path.Combine(dir2, "testLib3.dll"), new []
{
@"../../../../../../main/GarnetServer/Extensions/ReadWriteTxn.cs",
@"../../../../../main/GarnetServer/Extensions/ReadWriteTxn.cs",
testFilePath,
}}
};
Expand Down

0 comments on commit cc9f943

Please sign in to comment.