Skip to content

Commit

Permalink
Fix ConfigServer test cases on sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
agile.zhou committed Jan 21, 2024
1 parent f72f3ca commit be8b099
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 151 deletions.
4 changes: 2 additions & 2 deletions src/AgileConfig.Server.Service/ConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ public void Dispose()
publishTimelineNode.AppId = appId;
publishTimelineNode.Id = Guid.NewGuid().ToString("N");
publishTimelineNode.PublishTime = DateTime.Now;
publishTimelineNode.PublishUserId = user.Id;
publishTimelineNode.PublishUserName = user.UserName;
publishTimelineNode.PublishUserId = user?.Id;
publishTimelineNode.PublishUserName = user?.UserName;
publishTimelineNode.Version = versionMax + 1;
publishTimelineNode.Log = log;
publishTimelineNode.Env = env;
Expand Down
10 changes: 0 additions & 10 deletions test/AgileConfig.Server.ServiceTests/sqlite/AppServiceTests.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Text;
using FreeSql;
using AgileConfig.Server.Data.Freesql;
using AgileConfig.Server.Data.Entity;
using System.Threading.Tasks;
using AgileConfig.Server.IService;
using AgileConfig.Server.Service;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using AgileConfig.Server.Data.Abstraction;
using AgileConfig.Server.Data.Repository.Freesql;
using AgileConfig.Server.Common;
using MongoDB.Driver.Linq;

namespace AgileConfig.Server.ServiceTests.sqlite
{
Expand Down
Loading

0 comments on commit be8b099

Please sign in to comment.