fixed settings pakcage test case passed

pull/721/head
alimy 5 months ago
parent eec7b18575
commit 037aadae2b
No known key found for this signature in database
GPG Key ID: 6964A0C5FE15145A

@ -110,8 +110,7 @@ func (s *Service) ApplyPersistedOverrides(ctx context.Context) error {
return nil
}
func (s *Service) GetProfile(ctx context.Context) (*web.SiteProfileResp, error) {
_ = ctx
func (s *Service) GetProfile(_ctx context.Context) (*web.SiteProfileResp, error) {
return &web.SiteProfileResp{
UseFriendship: conf.WebProfileSetting.UseFriendship,
EnableTrendsBar: conf.WebProfileSetting.EnableTrendsBar,

@ -172,7 +172,7 @@ func newTestService(t *testing.T) *Service {
if err != nil {
t.Fatalf("os.Getwd() error = %v", err)
}
root := filepath.Clean(filepath.Join(wd, "..", ".."))
root := filepath.Clean(filepath.Join(wd, "../../.."))
if err := os.Chdir(root); err != nil {
t.Fatalf("os.Chdir(%q) error = %v", root, err)
}

Loading…
Cancel
Save