Skip to content

Commit

Permalink
Merge pull request #4 from angshuman/dev
Browse files Browse the repository at this point in the history
Fix Continuation warning. Run test in Dockerfile
  • Loading branch information
angshuman authored Sep 14, 2019
2 parents 6593541 + a5e79c1 commit cd1ee6f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ RUN dotnet restore

COPY . ./

RUN apt-get update && apt-get install -y libcap2-bin libsnappy1v5 && \
ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so && \
ln -s /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so && \
rm -rf /var/lib/apt/lists/*

RUN dotnet test Hexastore.Test

# Copy everything else and build
RUN dotnet publish -c Release ./Hexastore.Web -o /app/out

Expand Down
2 changes: 1 addition & 1 deletion Hexastore.Test/Hexastore.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
5 changes: 2 additions & 3 deletions Hexastore.Test/StoreProcessorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using Hexastore.Parser;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
Expand Down Expand Up @@ -133,7 +132,7 @@ public void Json_Read_Write_Relationship_Returns()
}

[TestMethod]
public void Patch_Returns_With_Relationship()
public void Patch_With_Relationship_Returns()
{
var patch = new
{
Expand Down Expand Up @@ -173,7 +172,7 @@ public void Patch_Returns_With_Relationship()
}

[TestMethod]
public void Patch_Returns_With_Values()
public void Patch_With_Values_Returns()
{
var doc = new
{
Expand Down
5 changes: 5 additions & 0 deletions Hexastore/Query/ObjectQueryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public override bool Equals(object obj)
}
return t.S.Equals(S) && t.P.Equals(P) && t.O.CompareTo(O) == 0 && t.IsId == IsId;
}

public override int GetHashCode()
{
return (S + P + O + IsId.ToString()).GetHashCode();
}
}

public class QueryUnit
Expand Down

0 comments on commit cd1ee6f

Please sign in to comment.