Browse Source

修复代码问题

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
5e6a78c564
1 changed files with 3 additions and 4 deletions
  1. 3 4
      TestCode/test_statistics_subs_score_test.go

+ 3 - 4
TestCode/test_statistics_subs_score_test.go

@@ -4,7 +4,6 @@ import (
 	"github.com/allanpk716/ChineseSubFinder/pkg/log_helper"
 	"github.com/allanpk716/ChineseSubFinder/pkg/logic/sub_timeline_fixer"
 	"github.com/allanpk716/ChineseSubFinder/pkg/settings"
-	"github.com/prometheus/common/log"
 	"path/filepath"
 	"testing"
 )
@@ -93,15 +92,15 @@ func Test_statistics_subs_score_is_match(t *testing.T) {
 			s := sub_timeline_fixer.NewSubTimelineFixerHelperEx(logger, *settings.NewTimelineFixerSettings())
 			bok, ffmpegInfo, audioVADInfos, infoBase, err := s.IsVideoCanExportSubtitleAndAudio(tt.args.videoFPath)
 			if err != nil {
-				log.Errorln("IsVideoCanExportSubtitleAndAudio", err)
+				logger.Errorln("IsVideoCanExportSubtitleAndAudio", err)
 				return
 			}
 			if bok == false {
-				log.Errorln("IsVideoCanExportSubtitleAndAudio", "bok == false")
+				logger.Errorln("IsVideoCanExportSubtitleAndAudio", "bok == false")
 				return
 			}
 
-			statistics_subs_score_is_match(s, ffmpegInfo, audioVADInfos, infoBase, tt.args.subSearchRootPath, filepath.Base(tt.args.videoFPath))
+			statistics_subs_score_is_match(logger, s, ffmpegInfo, audioVADInfos, infoBase, tt.args.subSearchRootPath, filepath.Base(tt.args.videoFPath))
 		})
 	}
 }